using System.Threading;
using System.Threading.Tasks;
using EasyDapr.Domain;

namespace EasyDapr.Infrastructure.Dapr
{
    public interface IDaprPublisher
    {
        /// <summary>
        /// Publish event
        /// </summary>
        /// <param name="event"></param>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        Task Publish(IDomainEvent @event, CancellationToken cancellationToken);
    }
}